Optimal. Leaf size=188 \[ -\frac {256 a^4 \cos ^5(c+d x)}{6435 d (a+a \sin (c+d x))^{5/2}}-\frac {64 a^3 \cos ^5(c+d x)}{1287 d (a+a \sin (c+d x))^{3/2}}-\frac {56 a^2 \cos ^5(c+d x)}{1287 d \sqrt {a+a \sin (c+d x)}}-\frac {14 a \cos ^5(c+d x) \sqrt {a+a \sin (c+d x)}}{429 d}+\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 188, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {2957, 2935,
2753, 2752} \begin {gather*} -\frac {256 a^4 \cos ^5(c+d x)}{6435 d (a \sin (c+d x)+a)^{5/2}}-\frac {64 a^3 \cos ^5(c+d x)}{1287 d (a \sin (c+d x)+a)^{3/2}}-\frac {56 a^2 \cos ^5(c+d x)}{1287 d \sqrt {a \sin (c+d x)+a}}-\frac {2 \cos ^5(c+d x) (a \sin (c+d x)+a)^{5/2}}{15 a d}+\frac {4 \cos ^5(c+d x) (a \sin (c+d x)+a)^{3/2}}{39 d}-\frac {14 a \cos ^5(c+d x) \sqrt {a \sin (c+d x)+a}}{429 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2752
Rule 2753
Rule 2935
Rule 2957
Rubi steps
\begin {align*} \int \cos ^4(c+d x) \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx &=-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}+\frac {2 \int \cos ^4(c+d x) \left (\frac {5 a}{2}-5 a \sin (c+d x)\right ) (a+a \sin (c+d x))^{3/2} \, dx}{15 a}\\ &=\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}+\frac {7}{39} \int \cos ^4(c+d x) (a+a \sin (c+d x))^{3/2} \, dx\\ &=-\frac {14 a \cos ^5(c+d x) \sqrt {a+a \sin (c+d x)}}{429 d}+\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}+\frac {1}{143} (28 a) \int \cos ^4(c+d x) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {56 a^2 \cos ^5(c+d x)}{1287 d \sqrt {a+a \sin (c+d x)}}-\frac {14 a \cos ^5(c+d x) \sqrt {a+a \sin (c+d x)}}{429 d}+\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}+\frac {\left (224 a^2\right ) \int \frac {\cos ^4(c+d x)}{\sqrt {a+a \sin (c+d x)}} \, dx}{1287}\\ &=-\frac {64 a^3 \cos ^5(c+d x)}{1287 d (a+a \sin (c+d x))^{3/2}}-\frac {56 a^2 \cos ^5(c+d x)}{1287 d \sqrt {a+a \sin (c+d x)}}-\frac {14 a \cos ^5(c+d x) \sqrt {a+a \sin (c+d x)}}{429 d}+\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}+\frac {\left (128 a^3\right ) \int \frac {\cos ^4(c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx}{1287}\\ &=-\frac {256 a^4 \cos ^5(c+d x)}{6435 d (a+a \sin (c+d x))^{5/2}}-\frac {64 a^3 \cos ^5(c+d x)}{1287 d (a+a \sin (c+d x))^{3/2}}-\frac {56 a^2 \cos ^5(c+d x)}{1287 d \sqrt {a+a \sin (c+d x)}}-\frac {14 a \cos ^5(c+d x) \sqrt {a+a \sin (c+d x)}}{429 d}+\frac {4 \cos ^5(c+d x) (a+a \sin (c+d x))^{3/2}}{39 d}-\frac {2 \cos ^5(c+d x) (a+a \sin (c+d x))^{5/2}}{15 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.57, size = 120, normalized size = 0.64 \begin {gather*} -\frac {a \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^5 \sqrt {a (1+\sin (c+d x))} (43122-36640 \cos (2 (c+d x))+3630 \cos (4 (c+d x))+66470 \sin (c+d x)-14445 \sin (3 (c+d x))+429 \sin (5 (c+d x)))}{51480 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 4.78, size = 97, normalized size = 0.52
method | result | size |
default | \(\frac {2 \left (1+\sin \left (d x +c \right )\right ) a^{2} \left (\sin \left (d x +c \right )-1\right )^{3} \left (429 \left (\sin ^{5}\left (d x +c \right )\right )+1815 \left (\sin ^{4}\left (d x +c \right )\right )+3075 \left (\sin ^{3}\left (d x +c \right )\right )+2765 \left (\sin ^{2}\left (d x +c \right )\right )+1580 \sin \left (d x +c \right )+632\right )}{6435 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 210, normalized size = 1.12 \begin {gather*} \frac {2 \, {\left (429 \, a \cos \left (d x + c\right )^{8} + 957 \, a \cos \left (d x + c\right )^{7} - 633 \, a \cos \left (d x + c\right )^{6} - 1301 \, a \cos \left (d x + c\right )^{5} + 20 \, a \cos \left (d x + c\right )^{4} - 32 \, a \cos \left (d x + c\right )^{3} + 64 \, a \cos \left (d x + c\right )^{2} - 256 \, a \cos \left (d x + c\right ) + {\left (429 \, a \cos \left (d x + c\right )^{7} - 528 \, a \cos \left (d x + c\right )^{6} - 1161 \, a \cos \left (d x + c\right )^{5} + 140 \, a \cos \left (d x + c\right )^{4} + 160 \, a \cos \left (d x + c\right )^{3} + 192 \, a \cos \left (d x + c\right )^{2} + 256 \, a \cos \left (d x + c\right ) + 512 \, a\right )} \sin \left (d x + c\right ) - 512 \, a\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{6435 \, {\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 192, normalized size = 1.02 \begin {gather*} -\frac {64 \, \sqrt {2} {\left (1716 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{15} - 7920 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} + 14625 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} - 13585 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 6435 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 1287 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5}\right )} \sqrt {a}}{6435 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^4\,{\sin \left (c+d\,x\right )}^2\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________